﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;

namespace MessengerBot
{
    /// <summary>
    /// This <see cref="EventArgs"/> descendant wraps a <see cref="LogEntry"/>
    /// for use with the <see cref="EventBasedLogger"/>.
    /// </summary>
    public class LogEntryEventArgs : EventArgs
    {
        /// <summary>
        /// This is the backing field for the <see cref="LogEntry"/> property.
        /// </summary>
        private readonly LogEntry _LogEntry;

        /// <summary>
        /// Initializes a new instance of the <see cref="LogEntryEventArgs"/> class.
        /// </summary>
        /// <param name="logEntry">
        /// The <see cref="LogEntry"/> value to log.
        /// </param>
        public LogEntryEventArgs(LogEntry logEntry)
        {
            _LogEntry = logEntry;
        }

        /// <summary>
        /// Gets the <see cref="MessengerBot.LogEntry"/> value that will be logged.
        /// </summary>
        public LogEntry LogEntry
        {
            get
            {
                return _LogEntry;
            }
        }
    }
}